﻿using System;
using Spring.Context;
using Spring.Context.Support;
using OigSync.Domain.Service.Job;

namespace OigSync.Domain.Test
{
    public class TestMain
    {
        public static void Main(String[] args)
        {
            IApplicationContext context = ContextRegistry.GetContext();
            ISchedulerService service = context.GetObject("SchedulerServiceImpl") as ISchedulerService;

            JobDetailInfo jobDetailInfo = new JobDetailInfo();
            TriggerInfo triggerInfo = new TriggerInfo();

            service.Add(jobDetailInfo, triggerInfo);
        }
    }
}